package cn.ococci.dm.Main;

/**
 * Created by cyan on 15/9/21.
 * 通用的,不可改变的常量
 */
public class Const {

    public static final String SP_CONFIG = "app_config";
    public static final int ANIM_NEXT = 1;
    public static final int ANIM_BACK = 2;


    public interface LoginParams {
        String USER_ACCOUNT = "user_account";
        String SP_KEY_LOGIN_FLAG = "sp_key_login_flag";
        String ON_LINE = "on_line";
        String LOGIN_NET_NAME = "login_net_name";
    }


    public static final String DOOR_SSID = "smart";
    public static final String IP = "192.168.1.1";  //ip地址
    public static final int PORT = 5001;  //端口
    public static final int TIME_OUT = 7000;  //超时时间

    public static final String REQUEST_RETURN_VALUE = "retvalue";

    public static final String REQUEST_SIGN_IN_RECORD = "data";  //同步数据字段

    public static final String OTA_Directory = "otc/";
    public static final String OTA_AP_NAME = "ap_ota.bin";
    public static final String OTA_PR_NAME = "pr_ota.bin";


    public static final String open_infrared = "open_infrared";


    public interface CommandParams {
        String Command_AP = "AP";
        String Command_PR = "PR";
        String COMMAND_TYPE = "type";
        String COMMAND_REQUEST_VERSION = "request_version";
        String COMMAND_AP_VERSION = "ap_version";  // ap 版本
        String COMMAND_PR_VERSION= "pr_version";   // pr 版本
        String COMMAND_UPGRADE_AP= "upgrade_ap";   // 升级类型AP
        String COMMAND_upgrade_PR= "upgrade_pr";   // 升级类型PR

        // 红外
        String COMMAND_OPEN_INFRARED= "open_infrared";
        String COMMAND_OPEN =  "open";
        String COMMAND_CLOSE=  "close";
        String COMMAND_INFRARED =  "infrared";
        String COMMAND_INFRARED_STATUS =  "infrared_status";


        String COMMAND_IP= "ip";   // ip
        String COMMAND_PORT= "port";   // 端口

        String COMMAND_SET_WHITE_LIST = "set_white_list";  //新增白名单
        String COMMAND_SET_BLACKLIST = "set_black_list";  //新增黑名单

    }


    public interface BuilderParams {

        String user = "user";
        String pass = "pass";
        String user_id = "user_id";
        String mac_id = "mac_id";

        String name = "name";
        String detail = "detail";
        String errCode = "errCode";
        String door_Bssid = "door_bssid";
        String BSSID = "bssid";
        String ssid = "ssid";
        String company_id = "company_id";
        String device_type = "device_type";
        String door_id = "door_id";
        String id = "id";
        String message = "message";
        String mac = "mac";
        String unit_id = "unit_id";
        String unit_no = "unit_no";
        String longitude = "longitude";
        String latitude = "latitude";
        String unit_code = "unit_code";
        String card_list = "card_list";
        String type = "type";
        String version = "version";
        String url = "url";
        String md5 = "md5";

        String REQUEST_WIFI_LIST = "wifi-list"; // wifi列表

        String REQUEST_SIGNAL = "signal";  //信号强度
        String REQUEST_WIFI_SSID = "ssid"; //Wifi ssid

    }


    public interface Wifi {
        String WPA2 = "WPA2";
        String WPA = "WPA";
        String WEP = "WEP";
        String OPEN = "Open";
        String WPA_EAP = "WPA-EAP";
        String IEEE8021X = "IEEE8021X";

    }


}
